<span>
  <span tal:condition="exists: o/foo">foo exists</span>
  <span tal:condition="exists: o/bar">bar exists</span>
</span>
